package net.jxtz.jxtzos.impl.spider;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.jxtz.jxtzos.entity.spider.SpiderHousingInformation;
import net.jxtz.jxtzos.entity.web.SpiderUpgrade;
import net.jxtz.jxtzos.mapper.spider.SpiderHousingInformationMapper;
import net.jxtz.jxtzos.service.spider.SpiderHousingInformationService;
import net.jxtz.jxtzos.spider.SpiderFactory;
import net.jxtz.jxtzos.spider.process.HousingInformationProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author lmh
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class SpiderHousingInformationServiceImpl extends ServiceImpl<SpiderHousingInformationMapper, SpiderHousingInformation> implements SpiderHousingInformationService {

    @Autowired
    private SpiderHousingInformationMapper mapper;

    @Override
    public List<SpiderUpgrade> getUpgradeTimeAndCount() {
        return mapper.getUpgradeTimeAndCount();
    }
}
